<?php 
include('detect.php');
switch(kto()) {
	case 1:
		header("Location: panel_pacjent.php");
		break;
	case 2:
		header("Location: admin.php");
		break;
	case 3:
		header("Location: panel_lekarz.php");
		break;
	case 0:
		header("Location: index.php");
		break;
}
?>